package main

import (
	"fmt"
	"strings"
)

func printAlignedTriangle(n int) {
	for i := 1; i <= n; i++ {
		spaces := strings.Repeat(" ", n-i)
		numbers := strings.Repeat(fmt.Sprint(i), i)
		fmt.Printf("%s%s\n", spaces, numbers)
	}
}

func main() {
	n := 12 // 要打印的行数
	printAlignedTriangle(n)
}
